<?php


require "database.php";



$orderno=$_GET["orderno"];



$__copyr__=file_get_contents("copyorder.json");


$__copyr__=json_decode($__copyr__,1);



// for ($i = 0; $i < count($__copyr__); $i++) {
//     if($__copyr__[$i]["order_no"]==$orderno){
//         $__copyr__[$i]["poin"]=$__copyr__[$i]["poin"]+1;
//     }
// }


$__copyr__=json_encode($__copyr__,JSON_PRETTY_PRINT|JSON_UNESCAPED_UNICODE);
file_put_contents("copyorder.json",$__copyr__);